All Questions
4 questions
1vote
1answer
766views
My scripts-bundle.js file is getting sent to the browser as a stylesheet css file. Help!
I'm new to WordPress custom theme development. I am using a child theme for OceanWP. I have a webpack setup to hot-reload my files but my js scripts are not getting sent to my WordPress site instead ...
2votes
2answers
427views
How to avoid redefining requirejs in plugin when another plugin also uses requirejs
Now here is a little pickle I have yet so solve properly. I authored a Wordpress plugin and it uses requirejs for loading javascript modules. All is well, until occasionally I get very obscure error ...
1vote
4answers
4kviews
Add js into a theme [closed]
I am trying to create new WordPress theme from scratch. I have working html, css and js files. To add JS into wordpress theme I used: function my_scripts_styles() { wp_enqueue_script( 'easing', ...
0votes
1answer
2kviews
'Bones' theme: Load stock scripts in footer instead of header?
I'm using the 'Bones' theme in my latest WordPress site, and when I run the site through Google PageSpeed, I receive the following error: Eliminate render-blocking JavaScript and CSS in above-the-...